import React from "react";
import ReactDOM from 'react-dom'
import App from './App'

//导入store来监听页面的数据发生改变
import store from './Redux/store'

//导入react-redux 中的Provider
import {Provider} from 'react-redux'

ReactDOM.render(
<Provider store={store}>
        <App />
</Provider>, document.getElementById('root'))

// store.subscribe(() => {
//     ReactDOM.render(<App />, document.getElementById('root'))
// })